<table id= "mymain"  width="100%" align = "left" cellspacing="0" >
<tr valign="top" height= "10px">
	<td width="7%" ></td>
	<td width="10%" ></td>
	<td width="10%" ></td>
	<td width="10%" ></td>
	<td width="10%"></td>
	<td width="10%"></td>
	<td width="10%"></td>
	<td width="10%"></td>
	<td width="10%"></td>
	<td width="10%"></td>
</tr>
<tr valign="top">
	<td colspan = "2" class="mylabel" align = "right" >
		<label for="ma_dk">Mã chứng từ: </label>
	</td>
	<td colspan = "1" class="value" >
		<input type="text" name="ma_dk" value="" id="ma_dk" style="width:70%" class="textField" />
	</td>
	<td colspan = "1" align = "right">Mã tiền tệ: </td>
	<td colspan = "1" style="">
		<select name="mant" id="mant" size="1" class="selectMenu" onChange="changeMaNT(this.id);">{html_options options=$dmntf selected=$mant}</select>
	</td>
</tr>
<tr>
	<td colspan = "2"  align = "right" class="mylabel">
		<label for="matk">{$lTK}:</label>
	</td>
	<td class="value" >
		<select name="tk" id="tk" class="selectMenu"> {html_options options=$tktien|truncate:50}</select>
	</td>
	<td align = "right"  class="mylabel" id="lbltygia">Tỷ giá:</td>
	<td class="value">
		<input type="text" name="sotien_tygia" value="" id="tygiatk" style="text-align:right"  size ="10" onblur="validnumber(this.value, this.id)" onkeypress="return isNumberKey(event)" class="textField" />
	</td>
</tr>
<tr valign="center">
	<td colspan = "2" align = "right"  class="mylabel">
		<label for="ngct">Ngày chứng từ:</label>
	</td>
	<td>
		<div style="display:inline" class="value">
			<input type="text" name="ngct" value="" id="ngct" size="10" maxlength="20" onblur="return validNgay(this.value, this.id, '{$xNam}')" onkeydown="javascript:if (event.keyCode == 13) document.getElementById('ngct').focus()" class="textField" />
		</div>
	</td>
	<td align = "right"  class="mylabel">Mã đơn vị:</td>
	<td colspan = "1">
		<input type="text" name="ma_dvcs" value="" id="ma_dvcs" style="width:70%" class="textField" />
	</td>
</tr>
<tr>
	<td colspan = "2" align = "right"  class="mylabel">
		<label for="ngaylapct">Ngày lập chứng từ:</label>
	</td>
	<td>
		<div style="display:inline" class="value">
			<input type="text" 	name="ngaylapct" value="" id="ngaylapct" size="10" maxlength="20" onblur="return validNgay(this.value, this.id, '{$xNam}')" onkeydown="javascript:if (event.keyCode == 13) document.getElementById('ngaylapct').focus()" class="textField" />
		</div>
	</td>               
</tr>
<tr valign="center">
	<td colspan = "2" align = "right" class="mylabel" >
		<label for="soct">Số chứng từ:</label>
	</td>
	<td colspan = "1" class="value" >
		<input type="text" name="soct" value="" id="soct" style="width:70%" class="textField" />
	</td>
</tr>
<tr>
	<td colspan = "2" align = "right" class="mylabel">
		<label for="solgctg">Mã khách hàng:</label>
	</td>
	<td colspan = "2">
		<select name="makh" id="makh" onclick="SetCur(this.id)" onChange="changeMaCTTK(this.id, '{$urlS_getTenDMDV}');" class="selectMenu" style="width:300px"> {html_options options=$madva selected=$makh}</select>
	</td>
</tr>
<tr valign="top">
	<td colspan = "2" align = "right" class="mylabel">
		<label for="daidien">Người giao dịch:</label>
	</td>
	<td colspan = "5" class="value">
		<input type="text" name="daidien" value="" id="daidien" style="width:99%" class="textField" />
	</td>
</tr>
<tr valign="top">
	<td colspan = "2" align = "right" class="mylabel">
		<label for="diachi">Địa chỉ:</label>
	</td>
	<td colspan = "5" class="value">
		<input type="text" name="diachi" value="" id="diachi" class="textField" style="width:99%" />
	</td>
</tr>
<tr valign="top">
	<td colspan = "2" align = "right" class="label">
		<label for="lydo">Diễn giải chính:</label>
	</td>
	<td colspan = "3" class="value">
		<input type="text" name="lydo" value="" id="lydo" class="textField" style="width:99%" />
	</td>
</tr>
<tr>
	<td colspan = "2" align = "right" class="mylabel">Nội dung (khai thuế):</td>
	<td colspan = "3">
		<input type="text" name="noidungthue" value="" id="noidungthue" style="width:70%" class="textField" />
	</td>
	<td colspan = "1"></td>
</tr>
</table>